package com.atguigu.gmall.item.client;

import com.atguigu.gmall.item.client.impl.ItemFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(value = "service-item",fallback = ItemFeignClientImpl.class)

public interface ItemFeignClient {

    /**
     * @param skuId
     * @return
     */
    //获取商品详情页面 所有数据
    @GetMapping("/api/item/getItem/{skuId}")
    public Map getItem(@PathVariable Long skuId);
}
